<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
</head>
<body>

<h2>JavaScript 模板字面量</h2>

<p>模板字面量使用反引号 (``) 来定义一个字符串:</p>

<p id="demo"></p>

<p>Internet Explorer 不支持模板字面量。</p>

<script>
let num = 100;
let price = 8.97;
let sumprice = `all = ${num*price}`;
document.getElementById("demo").innerHTML = sumprice;
</script>

</body>
</html>